<?php
class CategoryModel extends RelationModel {

	public $_link = array(

        'parent'=> array(  
			'mapping_type'	=>	HAS_ONE,
			'class_name'	=>	'Category',
			'foreign_key'	=>	'pid',
		),
		
		/*'children'=> array(  
			'mapping_type'	=>	HAS_MANY,
			'class_name'	=>	'Category',
			'foreign_key'	=>	'pid',
		),*/
	);
}
?>